home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SNNSV32.ZIP / SNNSv3.2 / kernel / sources / kr_funcs.ph < prev    next >
Text File  |  1994-04-25  |  2KB  |  79 lines

  1. /*****************************************************************************
  2.   FILE           : kr_funcs.ph
  3.   SHORTNAME      : 
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : SNNS-Kernel: Routines for User-Function Management
  7.                        (Function Prototypes)
  8.   NOTES          :
  9.  
  10.   AUTHOR         : Niels Mache
  11.   DATE           : 12.02.90
  12.  
  13.   CHANGED BY     : Sven Doering
  14.   IDENTIFICATION : @(#)kr_funcs.ph    1.6 3/15/94
  15.   SCCS VERSION   : 1.6
  16.   LAST CHANGE    : 3/15/94
  17.  
  18.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  19.  
  20. ******************************************************************************/
  21. #ifndef _KR_FUNCS_DEFINED_
  22. #define  _KR_FUNCS_DEFINED_
  23.  
  24. /* begin global definition section */
  25.  
  26. krui_err  krf_getFuncInfo( int  mode, struct FuncInfoDescriptor  *func_descr );
  27.  
  28. /*  Returns the number of functions in the function table
  29. */
  30. int krf_getNoOfFuncs( void );
  31.  
  32. /*  seaches for the given function (name and type) and returns a pointer to
  33.     this function. krf_funcSearch(...) returns TRUE if the given function was
  34.     found, FALSE otherwise.
  35. */
  36. bool krf_funcSearch( char *func_name, int  func_type, FunctionPtr  *func_ptr );
  37.  
  38. /*  Returns the name of the given function
  39. */
  40. char *krf_getFuncName( FunctionPtr func_ptr );
  41.  
  42. /*  returns the name of the current network function
  43. */
  44. char  *krf_getCurrentNetworkFunc( int  type );
  45.  
  46. /*  sets the current network function.
  47. */
  48. krui_err  krf_setCurrentNetworkFunc( char  *function_name, int  type );
  49.  
  50.  
  51. /* end global definition section */
  52.  
  53. /* begin private definition section */
  54.  
  55. /*#################################################
  56.  
  57. GROUP: Local Vars
  58.  
  59. #################################################*/
  60.  
  61.  
  62. #define  NO_OF_FUNC_TYPES  8
  63. #define  NO_OF_KERNELS  2
  64. static char  CurrNetworkFunc[NO_OF_FUNC_TYPES * NO_OF_KERNELS][FUNCTION_NAME_MAX_LEN];
  65.  
  66. static bool  netFuncInit[NO_OF_FUNC_TYPES * NO_OF_KERNELS] = { 
  67.                          FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,
  68.                          FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE  };
  69.  
  70. static krui_err  krf_getInternalFuncInfo(int mode, struct FuncInfoDescriptor *func_descr);
  71. static void  krf_storeCurrentNetworkFunc(char *function_name, int type);
  72.  
  73.  
  74. /* end private definition section */
  75.  
  76. #endif 
  77.  
  78.  
  79.